const express = require('express');
const router = express.Router();
const productController = require('../controllers/productController');

// 获取商品列表
router.get('/', productController.getProducts.bind(productController));

// 获取商品详情
router.get('/:id', productController.getProductDetail.bind(productController));

module.exports = router;


